package com.bos.data.model;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * create by luojie 2018/6/6
 */
@Entity
@Table(name = "t_project_history", schema = "dbo", catalog = "")
public class TProjectHistoryModel {
    private Integer id;
    private String wType;
    private String wName;
    private String sTime;
    private String eTime;
    private String progess;
    private String pdetail;
    private String leader;
    private String groups;
    private String checker;
    private String kehuer;
    private String others1;
    private String others2;
    private String remarks;
    private Integer bid;
    private Timestamp updateTime;
    private String updateUser;

    @Id
    @Column(name = "id")
    @GeneratedValue
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "wType")
    public String getwType() {
        return wType;
    }

    public void setwType(String wType) {
        this.wType = wType;
    }

    @Basic
    @Column(name = "wName")
    public String getwName() {
        return wName;
    }

    public void setwName(String wName) {
        this.wName = wName;
    }

    @Basic
    @Column(name = "sTime")
    public String getsTime() {
        return sTime;
    }

    public void setsTime(String sTime) {
        this.sTime = sTime;
    }

    @Basic
    @Column(name = "eTime")
    public String geteTime() {
        return eTime;
    }

    public void seteTime(String eTime) {
        this.eTime = eTime;
    }

    @Basic
    @Column(name = "progess")
    public String getProgess() {
        return progess;
    }

    public void setProgess(String progess) {
        this.progess = progess;
    }

    @Basic
    @Column(name = "pdetail")
    public String getPdetail() {
        return pdetail;
    }

    public void setPdetail(String pdetail) {
        this.pdetail = pdetail;
    }

    @Basic
    @Column(name = "leader")
    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    @Basic
    @Column(name = "groups")
    public String getGroups() {
        return groups;
    }

    public void setGroups(String groups) {
        this.groups = groups;
    }

    @Basic
    @Column(name = "checker")
    public String getChecker() {
        return checker;
    }

    public void setChecker(String checker) {
        this.checker = checker;
    }

    @Basic
    @Column(name = "kehuer")
    public String getKehuer() {
        return kehuer;
    }

    public void setKehuer(String kehuer) {
        this.kehuer = kehuer;
    }

    @Basic
    @Column(name = "others1")
    public String getOthers1() {
        return others1;
    }

    public void setOthers1(String others1) {
        this.others1 = others1;
    }

    @Basic
    @Column(name = "others2")
    public String getOthers2() {
        return others2;
    }

    public void setOthers2(String others2) {
        this.others2 = others2;
    }

    @Basic
    @Column(name = "remarks")
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Basic
    @Column(name = "bid")
    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    @Basic
    @Column(name = "update_time")
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "update_user")
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }




    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TProjectHistoryModel that = (TProjectHistoryModel) o;
        return id == that.id &&
                Objects.equals(wType, that.wType) &&
                Objects.equals(wName, that.wName) &&
                Objects.equals(sTime, that.sTime) &&
                Objects.equals(eTime, that.eTime) &&
                Objects.equals(progess, that.progess) &&
                Objects.equals(pdetail, that.pdetail) &&
                Objects.equals(leader, that.leader) &&
                Objects.equals(groups, that.groups) &&
                Objects.equals(checker, that.checker) &&
                Objects.equals(kehuer, that.kehuer) &&
                Objects.equals(others1, that.others1) &&
                Objects.equals(others2, that.others2) &&
                Objects.equals(remarks, that.remarks) &&
                Objects.equals(bid, that.bid);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, wType, wName, sTime, eTime, progess, pdetail, leader, groups, checker, kehuer, others1, others2, remarks, bid);
    }
}
